//
// CPointLightNamed.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.CRGBA;
import org.ryzom.nel.misc.IStream;

public class CPointLightNamed extends CPointLight {
  private long swigCPtr;

  public CPointLightNamed(long cPtr, boolean cMemoryOwn) {
    super(nel3dJNI.CPointLightNamed_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  public static long getCPtr(CPointLightNamed obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CPointLightNamed(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public void setAnimatedLight(String value) {
    nel3dJNI.CPointLightNamed_AnimatedLight_set(swigCPtr, this, value);
  }

  public String getAnimatedLight() {
    return nel3dJNI.CPointLightNamed_AnimatedLight_get(swigCPtr, this);
  }

  public void setLightGroup(long value) {
    nel3dJNI.CPointLightNamed_LightGroup_set(swigCPtr, this, value);
  }

  public long getLightGroup() {
    return nel3dJNI.CPointLightNamed_LightGroup_get(swigCPtr, this);
  }

  public CPointLightNamed() {
    this(nel3dJNI.new_CPointLightNamed(), true);
  }

  public void setDefaultAmbient(CRGBA ambient) {
    nel3dJNI.CPointLightNamed_setDefaultAmbient(swigCPtr, this, CRGBA.getCPtr(ambient), ambient);
  }

  public void setDefaultDiffuse(CRGBA diffuse) {
    nel3dJNI.CPointLightNamed_setDefaultDiffuse(swigCPtr, this, CRGBA.getCPtr(diffuse), diffuse);
  }

  public void setDefaultSpecular(CRGBA specular) {
    nel3dJNI.CPointLightNamed_setDefaultSpecular(swigCPtr, this, CRGBA.getCPtr(specular), specular);
  }

  public CRGBA getDefaultAmbient() {
    return new CRGBA(nel3dJNI.CPointLightNamed_getDefaultAmbient(swigCPtr, this), true);
  }

  public CRGBA getDefaultDiffuse() {
    return new CRGBA(nel3dJNI.CPointLightNamed_getDefaultDiffuse(swigCPtr, this), true);
  }

  public CRGBA getDefaultSpecular() {
    return new CRGBA(nel3dJNI.CPointLightNamed_getDefaultSpecular(swigCPtr, this), true);
  }

  public CRGBA getUnAnimatedDiffuse() {
    return new CRGBA(nel3dJNI.CPointLightNamed_getUnAnimatedDiffuse(swigCPtr, this), true);
  }

  public void setLightFactor(CRGBA nFactor) {
    nel3dJNI.CPointLightNamed_setLightFactor__SWIG_0(swigCPtr, this, CRGBA.getCPtr(nFactor), nFactor);
  }

  public void setLightFactor(CRGBA nAnimatedFactor, CRGBA nUnAnimatedFactor) {
    nel3dJNI.CPointLightNamed_setLightFactor__SWIG_1(swigCPtr, this, CRGBA.getCPtr(nAnimatedFactor), nAnimatedFactor, CRGBA.getCPtr(nUnAnimatedFactor), nUnAnimatedFactor);
  }

  public void serial(IStream f) {
    nel3dJNI.CPointLightNamed_serial(swigCPtr, this, IStream.getCPtr(f), f);
  }

}
